#include <functional>
#include <string>

#define GL_GLEXT_PROTOTYPES
#include <GL/glcorearb.h>

namespace gl
{
	using render_func = std::function<void (float time)>;
	using resize_func = std::function<void (int w, int h)>;

	void init();
	void quit();
	void run(render_func const& render, resize_func const& resize);
	bool button(std::string const& name);
	float axis(std::string const& name);
	void axis(std::string const& name, float x);
}

